﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace FeedAntGame.Sprite.Event
{
    class CheckboxSprite : EventSprite
    {       

        public override STATE_TYPE State
        {
            get
            {
                return _state;
            }
            set
            {
                _state = value;                
            }
        }

        public override bool Toogle
        {
            get { return toogle; }
            set 
            { 
                toogle = value;
                if (!toogle)
                {
                    this.textureImage = normalBackground;
                }
                else
                {
                    this.textureImage = clickBackground;
                }
            }
        }

        public CheckboxSprite(Texture2D clickBackground, Texture2D normalBackground, Vector2 position, Point frameSize,
            int collisionOffset, Point sheetSize, Vector2 speed, string collisionCueName, float scale)
            : base(clickBackground, normalBackground, normalBackground, normalBackground, position, frameSize,
            collisionOffset, sheetSize, speed, collisionCueName, scale)
        {

        }
    }
}
